import request from '@/utils/request'

export const getEnterprise = params => {
  return request({
    url: '/park/enterprise',
    params
  })
}
// 获取租赁合同

export const getRent = id => {
  return request({
    url: `/park/enterprise/rent/${id}`

  })
}
// 删除
export const delEnterprise = id => {
  return request({
    url: `/park/enterprise/${id}`,
    method: 'DELETE'
  })
}
// 增加企业

export const addEnterprise = data => {
  return request({
    url: '/park/enterprise',
    method: 'POST',
    data
  })
}
// 查询企业行业列表

export const getIndustry = params => {
  return request({
    url: '/park/industry',
    params
  })
}
// 查看企业信息
export const watchInfo = id => {
  return request({
    url: `/park/enterprise/${id}`
  })
}
// 编辑企业信息
export const editEnterprise = data => {
  return request({
    url: '/park/enterprise',
    data,
    method: 'PUT'
  })
}
